package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产任务管理对象 tb_production_tasks
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class ProductionTasks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务唯一标识 */
    private Long taskId;

    /** 订单ID，外键关联生产订单表 */
    @Excel(name = "订单ID，外键关联生产订单表")
    private Long orderId;

    /** 任务内容 */
    @Excel(name = "任务内容")
    private String taskContent;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 负责人ID，外键关联员工表 */
    @Excel(name = "负责人ID，外键关联员工表")
    private Long responsiblePersonId;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private String status;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setTaskContent(String taskContent) 
    {
        this.taskContent = taskContent;
    }

    public String getTaskContent() 
    {
        return taskContent;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setResponsiblePersonId(Long responsiblePersonId) 
    {
        this.responsiblePersonId = responsiblePersonId;
    }

    public Long getResponsiblePersonId() 
    {
        return responsiblePersonId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("orderId", getOrderId())
            .append("taskContent", getTaskContent())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("responsiblePersonId", getResponsiblePersonId())
            .append("status", getStatus())
            .toString();
    }
}
